package com.mail.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("team_member")
public class TeamMember {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long teamId;

    private Long memberId;

    private String isManager;

    public TeamMember(Long teamId, Long memberId, String isManager) {
        this.teamId = teamId;
        this.memberId = memberId;
        this.isManager = isManager;
    }

    public TeamMember(Long teamId, Long memberId) {
        this.teamId = teamId;
        this.memberId = memberId;
    }
}
